package cn.rhl.projectinit;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * @author rhl
 */
@SpringBootApplication
@MapperScan("cn.rhl.projectinit.mapper")
/**
 * 通过以下注解可以获取当前类的代理类
 * AopContext.currentProxy();
 */
@EnableAspectJAutoProxy(exposeProxy = true)
public class ProjectInitApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProjectInitApplication.class, args);
    }

}
